package com.hm.order.mongo.domain;

import java.util.List;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.hm.common.model.BaseModel;
import com.hm.order.mongo.def.OrderTypeDef;
import com.hm.order.mongo.util.OrderMongoDataDef;

import lombok.Getter;
import lombok.Setter;

/**
 * @author shishun.wang
 * @date 下午4:56:27 2016年7月20日
 * @version 1.0
 * @describe 
 */
@Setter
@Getter
@Document(collection = OrderMongoDataDef.Db.Mongo.PREFIX + "order")
public class Order extends BaseModel {

	private static final long serialVersionUID = 1L;
	
	@Field("order_type")
	private OrderTypeDef orderType;

	@Field("order_items")
	private List<OrderItem> orderItems;
	
}
